package com.jerome.election.http;

/**
 * HTTP constant information.
 * This interface defines constants related to HTTP.
 *
 * @author Jerome
 * @date 2023/8/31
 */
public interface HttpConstant {
    /**
     * Request header separator.
     */
    String HEADER_SEPARATOR = ": ";

    /**
     * Space character.
     */
    String SPACE = " ";

    /**
     * Question mark used for user query.
     */
    String URL_QUERY_IDENTIFIER = "?";

    /**
     * URL query parameter separator between parameter name and value.
     */
    String URL_QUERY_SEPARATOR = "=";

    /**
     * URL query parameter separator for multiple parameters.
     */
    String URL_QUERY_PARAMETER_SEPARATOR = "&";

    /**
     * Line separator for HTTP messages.
     */
    String LINE_SEPARATOR = "\r\n";

    /**
     * HTTP version.
     */
    String HTTP_VERSION = "HTTP/1.1";
}
